/*
 * @Author: your name
 * @Date: 2022-02-24 08:57:36
 * @LastEditTime: 2022-02-24 08:58:43
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \app\vue.config.js
 */

const data=require("./src/mock")

const bodyParser=require("body-parser")

module.exports={
    devServer:{
        before(app){
            app.use(bodyParser.json())
            app.get('/api/list',(req,res)=>{
                res.send({
                    code:200,
                    data:data
                })
            })
        }
    }
}